package com.bruan.reflect_demo;

public class Test {
    @org.junit.Test
    public void save(){
        Student s1 = new Student("boniu","xx",11,2121.2);
        Teacher t1 = new Teacher("liankaih", "nan", 11, 21312.2, "牛马");
        //保存
        String path = "D:\\CODE\\CodeOfJava\\javasepromax\\final-java-app\\src\\data.txt";
        ObjectFrame.saveObj(s1,path);
        ObjectFrame.saveObj(t1,path);

    }
}
